import React from 'react'
import {ICON_URL_PREFIX} from "../../../redux/game";

const TeamIconTitle = props => {
    const team = props.team
    const iconTemplate = (
        <div className='flex-center-align-center' style={{...props.style}}>
            <img
                src={`${ICON_URL_PREFIX}/${team.logo}`}
                alt=''
                style={{width: '20px', marginRight: '6px',}}
            />
            <p>{team.name_zh}</p>
        </div>
    )
    return iconTemplate
}

export default TeamIconTitle
